#!/bin/bash
hour=`date +%H`
minute=`date +%M`
(( now=10#$hour*60+10#$minute  ))
(( fx=17*60+30  ))
((time1=$now-$fx))
((time2=$fx-$now))

if (( $now < $fx  ))
then
	echo -n   "还有 `echo "$time2/60"|bc` hours" 
	echo  "  $(( $time2 % 60 )) minute放学 "
elif
	(( $now == $fx  ))
then
	echo "现在放学！"
else
	echo " 已放学$(( $time1/60 )) 小时 $(($time1 % 60  ))  minute"
fi	

